package com.philosophy.web.service;

import com.philosophy.web.cmd.DeleteUrlMappingCmd;

/**
 * @author philosophy
 */
public interface ShortUrlService {

    /**
     * 创建url映射
     *
     * @param originUrl 原始url
     * @return 短url
     */
    String createUrlMapping(String originUrl);

    /**
     * 删除url映射
     *
     * @param deleteUrlMappingCmd cmd
     * @return 短url
     */
    String deleteUrlMapping(DeleteUrlMappingCmd deleteUrlMappingCmd);
}
